package com.example.springboot.service;

import com.example.springboot.entity.Base;
import com.example.springboot.mapper.BaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BaseService {
    @Autowired
    private BaseMapper baseMapper;
    public int save(Base base){

            return baseMapper.insert(base) ;


    }
    public int save1(Base base){
        return  baseMapper.insert1(base);
    }
    public int update(Base base){
        return baseMapper.update(base);
    }
    public int updatezl(Base base){
        return baseMapper.updatezl(base);
    }
    public int savehs(Base base){
        return baseMapper.inserths(base);
    }
    public int savesw(Base base){
        return baseMapper.insertsw(base);
    }

    public int savezy(Base base){
        return baseMapper.insertzy(base);
    }
}
